package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 策略管理对象 grid_policy
 * 
 * @author ruoyi
 * @date 2021-12-30
 */
public class GridPolicy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 策略ID */
    private Integer policyId;

    /** 策略名称 */
    @Excel(name = "策略名称")
    private String policyName;

    /** 执行方式（1手动 2自动） */
    @Excel(name = "执行方式", readConverterExp = "1=手动,2=自动")
    private String exeMethon;

    /** 开启复杂密码修改策略 */
    @Excel(name = "开启复杂密码修改策略")
    private String openComplex;

    /** 密码最小长度 */
    @Excel(name = "密码最小长度")
    private String passMin;

    /** 必密规则 */
    @Excel(name = "必密规则")
    private String passRule;

    /** 使用特权帐号改密 */
    @Excel(name = "使用特权帐号改密")
    private String usePrivilege;

    /** 公告状态（0正常 1关闭） */
    @Excel(name = "公告状态", readConverterExp = "0=正常,1=关闭")
    private String status;

    public void setPolicyId(Integer policyId) 
    {
        this.policyId = policyId;
    }

    public Integer getPolicyId() 
    {
        return policyId;
    }
    public void setPolicyName(String policyName) 
    {
        this.policyName = policyName;
    }

    public String getPolicyName() 
    {
        return policyName;
    }
    public void setExeMethon(String exeMethon) 
    {
        this.exeMethon = exeMethon;
    }

    public String getExeMethon() 
    {
        return exeMethon;
    }
    public void setOpenComplex(String openComplex) 
    {
        this.openComplex = openComplex;
    }

    public String getOpenComplex() 
    {
        return openComplex;
    }
    public void setPassMin(String passMin) 
    {
        this.passMin = passMin;
    }

    public String getPassMin() 
    {
        return passMin;
    }
    public void setPassRule(String passRule) 
    {
        this.passRule = passRule;
    }

    public String getPassRule() 
    {
        return passRule;
    }
    public void setUsePrivilege(String usePrivilege) 
    {
        this.usePrivilege = usePrivilege;
    }

    public String getUsePrivilege() 
    {
        return usePrivilege;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("policyId", getPolicyId())
            .append("policyName", getPolicyName())
            .append("exeMethon", getExeMethon())
            .append("openComplex", getOpenComplex())
            .append("passMin", getPassMin())
            .append("passRule", getPassRule())
            .append("usePrivilege", getUsePrivilege())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
